body {
  height: 100%;
}
.header {
  height: 3.84rem;
  .title {
    font-size: 1.92rem;
    margin: 1.2rem 0 0rem 0.986667rem;
  }

  .box {
    width: 18.346667rem;
    height: 1.6rem;
    margin: 0 auto;

    .search {
      width: 18.346667rem;
      height: 1.6rem;
      background-color: #eeeff1;
      border-radius: 30px;
      font-size: 0.746667rem;
      color: #999999;
      text-indent: 1.493333rem;
      background-image: url(../icos/ico_search.png);
      background-repeat: no-repeat;
      background-size: 0.746667rem;
      background-position: 0.453333rem;
    }
  }
}

.banner-carousel {
  margin-top: 0.986667rem;

  .swiper-container {
    width: 18.346667rem;
    height: 7.946667rem;
    border-radius: 0.266667rem;
    box-shadow: 0px 0.16rem 0.426667rem 0px rgba(204, 204, 204, 0.35);

    .swiper-slide {
      text-align: center;
      font-size: 18px;
      background: rgb(150, 150, 150);

      /* Center slide text vertically */
      display: -webkit-box;
      display: -ms-flexbox;
      display: -webkit-flex;
      display: flex;
      -webkit-box-pack: center;
      -ms-flex-pack: center;
      -webkit-justify-content: center;
      justify-content: center;
      -webkit-box-align: center;
      -ms-flex-align: center;
      -webkit-align-items: center;
      align-items: center;
    }

    .swiper-pagination-bullets {
      bottom: 0.18rem;
      left: 0;
      width: 100%;
    }

    .swiper-pagination-bullet {
      width: 0.213333rem;
      height: 0.213333rem;
      display: inline-block;
      border-radius: 100%;
      border: 1px solid #000b32;
      background-color: transparent;
      opacity: 1;
    }

    .swiper-pagination-bullet-active {
      opacity: 1;
      background-color: #000b32;
    }
  }
}

.nav {
  width: 20rem;
  height: 6.56rem;
  display: flex;
  justify-content: center;

  .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 1.333333rem;

    .ico {
      width: 2.24rem;
      height: 2.24rem;
      background-color: rgb(180, 180, 180);
      border-radius: 100%;
      margin-top: 1.146667rem;
      margin-bottom: 0.64rem;
      background-image: url(../icos/ico-01.png);
      background-repeat: no-repeat;
      background-size: 100%;
    }

    .text {
      width: 1.6rem;
      height: 0.586667rem;
      font-size: 0.746667rem;
      text-align: center;
    }

    &:nth-child(2) {
      .ico {
        background-image: url(../icos/ico-02.png);
      }
    }

    &:nth-child(3) {
      .ico {
        background-image: url(../icos/ico-03.png);
      }
    }

    &:nth-child(4) {
      .ico {
        background-image: url(../icos/ico-04.png);
      }
    }
  }
}

.hot-exchange {
  width: 20rem;
  height: 6.6rem;

  .hd {
    height: 0.853333rem;
    display: flex;
    padding-left: 0.933333rem;
    padding-right: 0.826667rem;

    .title {
      width: 4rem;
      height: 0.853333rem;
      font-size: 0.986667rem;
      color: #333333;
    }

    .gd {
      font-size: 0.693333rem;
      color: #999999;
      margin-left: 12.1rem;
      padding-top: 0.1rem;
      margin-right: 0.32rem;
    }

    .ico {
      display: inline-block;
      width: 0.373333rem;
      height: 0.64rem;
      background-image: url(../icos/ico-08.png);
      background-repeat: no-repeat;
      background-size: 100%;
    }
  }

  .swiper-container {
    width: 100%;
    height: 100%;

    .swiper-wrapper {
      align-items: center;
      height: 6rem;

      .swiper-slide {
        text-align: center;
        background: #fff;

        /* Center slide text vertically */
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;

        width: 6.4rem;
        height: 4.32rem;
        border-radius: 0.266667rem;
        box-shadow: 0px 0.186667rem 0.64rem 0px #cccccc;
        flex-direction: column;
        align-items: flex-start;
        margin: 0 0.453333rem;

        .tt {
          width: 3.466667rem;
          height: 0.693333rem;
          font-size: 0.853333rem;
          margin-top: 0.213333rem;
          margin-left: 0.506667rem;
          color: #333333;
        }

        .text {
          height: 0.533333rem;
          font-size: 0.64rem;
          color: #999999;
          padding-top: 0.426667rem;
          padding-left: 0.56rem;
        }

        .ico {
          width: 1.946667rem;
          height: 1.84rem;
          background-image: url(../icos/ico-05.png);
          background-repeat: no-repeat;
          background-size: 58%;
          background-position: bottom;
          margin-left: 4.4rem;
          margin-bottom: 0.133333rem;
        }

        &::before {
          content: "限时";
          width: 1.706667rem;
          height: 0.8rem;
          background-color: #fb3c19;
          border-radius: 0px 0.266667rem 0px 0.266667rem;
          font-size: 0.586667rem;
          color: #ffffff;
          line-height: 0.8rem;
          position: relative;
          left: 4.693333rem;
          top: 0;
        }

        &:first-child {
          margin-left: 0.88rem;
        }

        &:nth-child(2) {
          .ico {
            background-image: url(../icos/ico-06.png);
            background-size: 75%;
          }

          &::before {
            content: "疯抢";
            background-color: #f0e040;
          }
        }

        &:nth-child(3) {
          .ico {
            background-image: url(../icos/ico-07.png);
            background-size: 90%;
          }

          &::before {
            content: "品质";
            background-color: #70add5;
          }
        }
      }
    }
  }
}

.menus {
  .swiper3 {
    height: 1.2rem;
    padding: 0 0.666667rem;
    margin: 1.12rem 0;

    .swiper-slide {
      width: auto; // 根据内容调整宽度
      text-align: center;
      font-size: 0.906667rem;
      color: #999999;
      white-space: nowrap;
      padding-top: 0.266667rem;
      margin: 0 0.226667rem;

      /* Center slide text vertically */
      display: -webkit-box;
      display: -ms-flexbox;
      display: -webkit-flex;
      display: flex;
      -webkit-box-pack: center;
      -ms-flex-pack: center;
      -webkit-justify-content: center;
      justify-content: center;
      -webkit-box-align: center;
      -ms-flex-align: center;
      -webkit-align-items: center;
      align-items: center;
      cursor: pointer;
    }
    .selected {
      font-size: 0.986667rem;
      color: #333333;
      &::after {
        content: " ";
        display: block;
        position: absolute;
        width: 1.76rem;
        height: 0.16rem;
        background: #ffdc2d;
        border-radius: 0.08rem;
        top: 1rem;
      }
    }
  }

  .swiper4 {
    width: 100%;

    .swiper-slide {
      box-sizing: border-box !important;
    }
    .swiper-no-swiping {
      color: #000000;

      .tab-content {
        padding: 0 0.4rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        .item {
          width: 8.96rem;
          height: 100%;
          background: #ffffff;
          border-radius: 0.533333rem;
          box-shadow: 0px 0.16rem 0.48rem 0px rgba(204, 204, 204, 0.54);
          margin: 0.2rem 0.2rem;
          .img {
            width: 8.96rem;
            margin-bottom: 0.506667rem;
          }
          .descr {
            font-size: 0.8rem;
            color: #333333;
            margin: 0 0.64rem 0 0.453333rem;
          }
          .price {
            span {
              font-size: 0.64rem;
              color: #f81b49;
            }
            font-size: 0.96rem;
            color: #f81b49;
            margin-left: 0.453333rem;
            display: inline-block;
          }
          .demand {
            font-size: 0.64rem;
            color: #999999;
            display: inline-block;
            margin-right: 0.453333rem;
            line-height: 1.066667rem;
            margin-left: 2.666667rem;
          }
          .user-photo {
            width: 1.6rem;
            height: 1.6rem;
            background: #dcdcdc;
            border-radius: 100%;
            margin-left: 0.453333rem;
            display: inline-block;
          }
          .box {
            display: inline-block;
            margin-left: 0.266667rem;
            position: relative;
            top: -0.213333rem;
            .user-name {
              font-size: 0.746667rem;
              color: #333333;
            }
            .time-ago {
              font-size: 0.64rem;
              color: #999999;
            }
          }
        }
      }
    }
  }
}

.footer-nav {
  width: 20rem;
  height: 2.586667rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 1.333333rem;
  position: fixed;
  bottom: 0%;
  background-color: #fff;
  box-shadow: 0px -25px 40px 0px rgba(227, 224, 216, 0.4);
  z-index: 3;
  display: none;

  .ico {
    width: 1.12rem;
    height: 0.986667rem;
    background-image: url(../icos/ico-nav-sy-2.png);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
    margin: 0 auto;
  }
  &:nth-child(2) {
    .ico {
      width: 1.066667rem;
      height: 1.066667rem;
      background-image: url(../icos/ico-nav-hq.png);
    }
  }
  &:nth-child(3) {
    .ico {
      width: 2.613333rem;
      height: 2.613333rem;
      background-image: url(../icos/ico-nav-fb.png);
    }
    .text {
      margin-top: 0rem;
    }
  }
  &:nth-child(4) {
    .ico {
      width: 1.04rem;
      height: 1.04rem;
      background-image: url(../icos/ico-nav-ts.png);
    }
  }
  &:nth-child(5) {
    .ico {
      width: 1.013333rem;
      height: 1.013333rem;
      background-image: url(../icos/ico-nav-gr.png);
    }
  }
  .text {
    font-size: 0.64rem;
    color: #999999;
    margin-top: 0.4rem;
    text-align: center;
  }
}
